home *** CD-ROM | disk | FTP | other *** search
/ Educational Software Cooperative 4 / Educational Software Cooperative 4.iso / midilang / cbass.mpl < prev    next >
Encoding:
Text File  |  1996-02-06  |  1.6 KB  |  79 lines

  1. -1774
  2. #
  3. #
  4. #
  5. #    CBass.mpl
  6. #
  7. #    Automatic Basses for Midi Keyboard
  8. #
  9. #         Author            ID                 Date
  10. #       ------------    -----------          ---------
  11. #       Serge Sibony    100417,2633          09/06/95
  12. #      
  13. #
  14. # This file is a mpl effect definition used by MidiLang
  15. #    MidiLang can be found at the MidiForum, in the
  16. #         Windows sound media library.
  17. #
  18. # This effect adds basses ( C D E C ) based on the bass
  19. # you are playing ( on channel 2 ).
  20. #
  21. # The scale used here is C
  22. #
  23. #
  24.  
  25.  
  26. Label Main
  27.  
  28. # Automatic Bass on C scale 
  29.  
  30. Chan!= 2  This Mpl works only for the Bass ( set your Midi Channel to 2 )
  31.      Goto End  If the Note is not a Bass, forget it
  32.  
  33. InitHarm 1     Initialize the harmony package
  34.  
  35.  
  36. V=Note 9
  37.  
  38. CalcHarm 1          Your Bass is used as tonality
  39.      Note= 0        the C is saved too
  40. CalcHarm 1
  41.      Note= 5        the F too
  42. CalcHarm 1
  43.      Note= 7        the G too
  44. CalcHarm 1
  45.  
  46.  
  47. V= 6 2
  48.  
  49.  
  50. Label Loop          The loop for the 4 basses
  51. V== 6 1
  52.      Goto End
  53. V== 6 5
  54. V= 6 0
  55.  
  56. GetHarm 1 6 7       get the notes : 2 3 4 and 1 of the scale
  57. Note=V 7
  58. Note+=V 9
  59. OutMidi             and send it
  60.  
  61. Time+= 240          next time is half a beat later
  62.  
  63. V+= 6 1             add 1 to v[6]
  64.  
  65. Goto Loop      and go back to Loop
  66.  
  67.  
  68. Label End      End of the mpl effect
  69. End
  70.  
  71.  
  72. Descript  This effect adds basses automatically
  73. Descript  based on the tonality played by you.
  74. Descript  Note that this mpl suppose that your
  75. Descript  Bass Midi Channel is set to 2.
  76. Descript  The scale used is C.
  77.